package com.liukai.exam.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 班级信息表，存放学校，学院，专业，班级
 * </p>
 *
 * @author liu kai
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("CLASS_INFO")
@ApiModel(value = "ClassInfo对象", description = "班级信息表，存放学校，学院，专业，班级")
public class ClassInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "班级编号")
    @TableId(value = "CLASS_ID", type = IdType.ID_WORKER)
    private Integer classId;

    @ApiModelProperty(value = "学校名称，不能为空且唯一")
    @TableField("SCHOOL_NAME")
    private String schoolName;

    @ApiModelProperty(value = "学院名称，不能为空")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty(value = "专业名称，不能为空")
    @TableField("MAJOR_NAME")
    private String majorName;

    @ApiModelProperty(value = "班级名称，不能为空")
    @TableField("CLASS_NAME")
    private String className;


}
